
#include "Matrix.h"
#include "Calculus.h"
#include "Spline.h"

#include <ctime>
#include <random>

#include <iostream>

using namespace std;
using namespace LinearAlgebra;
using namespace Calculus;
using namespace Mesh;
using namespace UniPolynomial;

HEMesh mesh;

void test()
{
    srand(time(0));

    for (int i = 0; i < 1000; i++)
    {
        float x = 5.0 * (1.0 * rand() / RAND_MAX - 0.5);
		float y = 5.0 * (1.0 * rand() / RAND_MAX - 0.5);
		float z = 5.0 * (1.0 * rand() / RAND_MAX - 0.5);
        mesh.CreateVertex({x, y, z});
    }
    mesh.ConvexHull();
    cout << "Finished" << endl;
}

int main()
{
    test();
    cout << "A" << endl;

    return 0;
}